<?php
class LastestProduct_Bootstrap extends Zend_Application_Module_Bootstrap
{
	public function _initLastestProductAutoload()  
    {  
        $moduleLoader = new Zend_Application_Module_Autoloader(  
                                array(  
                                    'namespace' => 'LastestProduct',  
                                    'basePath' => APPLICATION_PATH . '/widgets/lastestproduct'  
                                )  
                            );  
  
        // adding model resources to the autoloader  
        $moduleLoader->addResourceTypes(  
                array(  
                    'plugins' => array(  
                        'path' => 'plugins',  
                        'namespace' => 'Plugin'  
                    )  
                )  
            );  
  
        return $moduleLoader;  
    }  
  
    public function _initPlugins()  
    {  
        $fc = Zend_Controller_Front::getInstance();  
  
        $fc->registerPlugin(new LastestProduct_Plugin_Init());  
    }  
}

